package me.xiaoyan.ehr.service;

import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTVerifier;
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.interfaces.DecodedJWT;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import me.xiaoyan.ehr.po.Account;
import me.xiaoyan.ehr.po.Employee;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.Map;

public interface EmployeeService extends IService<Employee> {

    public IPage<Employee> selectByParams(Map<String,String> params);

    public Employee update(Employee employee);
    public Employee create(Employee employee);
    /**
     * 根据工号查询员工信息
     * @param idCardNumber
     * @return
     */
    public Employee getByEmpId(String empId);

    /**
     * 根据身份证查询员工信息
     * @param idCardNumber
     * @return
     */
    public Employee getByIdCardNumber(String idCardNumber);
}
